<template>
  <div class="mainfooter _mainfooter">
    <div class="footerbody _footerbody">
      <div>
        <h1>商务合作</h1>
        <p class="item">广告</p>
        <p class="item">娱乐</p>
        <p class="item">网站</p>
      </div>
      <div>
        <h1>服务</h1>
        <p class="item">论坛</p>
        <p class="item">公众号</p>
        <p class="item">QQ群</p>
      </div>
      <div>
        <h1>图片</h1>
        <p>职业选手</p>
        <p>美女</p>
        <p>帅哥</p>
      </div>
      <div>
        <h1
          @click="
            windOpen(
              'https://blog.csdn.net/qq_53912756?spm=1000.2115.3001.5343'
            )
          "
        >
          博客
        </h1>
        <p>代码</p>
        <p>游戏</p>
        <p>公众号</p>
      </div>
      <div>
        <h1>其他</h1>
        <p>陪玩</p>
        <p>组排</p>
        <p>聊天</p>
      </div>
    </div>
    <div class="footerbottom _footerbottom">
      <p>公众号:@一枪换一弹。</p>
      <p>QQ群聊:874597106</p>
      <p>微信号:ayz520lwt</p>
    </div>
  </div>
</template>
  
  <script>
export default {
  name: "mainfooter",
  components: {},
  methods: {
    windOpen(url) {
      window.open(url);
    },
  },
};
</script>
  
  <style lang="less" scoped>
.item {
  cursor: pointer;
}
h1 {
  cursor: pointer;
  display: flex;
}
h1 a {
  width: 100%;
  height: 100%;
  text-decoration: none;
}
h1:hover {
  color: rgba(0, 0, 0, 0.5);
  transition: all 0.5s;
}
@media only screen and (min-width: 800px) {
  .mainfooter {
    display: flex;
    flex-direction: column;
    width: 100%;
    .footerbody {
      display: flex;
      justify-content: space-around;
      text-align: left;
      padding: 20px 0;
      border-top: 1px solid rgba(0, 0, 0, 0.1);
      border-bottom: 1px solid rgba(0, 0, 0, 0.1);
      margin: 0 10%;
      div {
        width: 130px;
        h1 {
          font-size: 12px;
          font-weight: 800;
          margin: 7px 0;
        }
        p {
          font-size: 10px;
          margin: 7px 0;
        }
      }
    }
    .footerbottom {
      margin: 7px 0;
      p {
        font-size: 10px;
      }
    }
  }
}

@media only screen and (max-width: 800px) {
  ._mainfooter {
    display: flex;
    flex-direction: column;
    width: 100%;
    justify-content: start;
    ._footerbody {
      width: 100%;
      display: flex;
      justify-content: space-around;
      text-align: left;
      // padding: 20px 0;
      border-top: 1px solid rgba(0, 0, 0, 0.1);
      border-bottom: 1px solid rgba(0, 0, 0, 0.1);
      // height: 500px;
      display: flex;
      flex-direction: column;
      align-items: center;
      // margin:0 10%;
      div {
        margin: 0 10px;
        width: 95%;
        h1 {
          display: block;
          border-bottom: 1px solid rgba(0, 0, 0, 0.1);
          color: rgba(0, 0, 0, 0.5);
          height: 40px;
          font-size: 10px;
          font-weight: 800;
          line-height: 40px;
          // margin: 7px 0;
        }
        p {
          display: none;
          font-size: 10px;
          margin: 7px 0;
        }
      }
    }
    ._footerbottom {
      margin: 7px 0;
      p {
        font-size: 10px;
      }
    }
  }
}
</style>